
module("NetWork.Action.JoinAllianceSmAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

JoinAllianceSmAction = NetCmdActionBase:new()

function JoinAllianceSmAction:Action(bytes)
    local JoinAllianceSm = require("Protol.groupMessage_pb").JoinAllianceSm()
    JoinAllianceSm:ParseFromString(bytes)

    if JoinAllianceSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(JoinAllianceSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.JoinAllianceSm(JoinAllianceSm)
end

require("NetWork.NetCmdSet").CmdSet[2011] = JoinAllianceSmAction --注册处理对象